<?php

require_once './config.php';

$gid = $_REQUEST['gid'];

$sql = "select * from goodsinfo where gid = $gid ";

$result = mysqli_query($conn,$sql);

$data = mysqli_fetch_assoc($result);

echo json_encode(array(
    'code' => 1,
    'data' => $data
));